package com.caldremch.rxretrofit.api;

import android.content.Context;

import com.caldremch.rxretrofit.api.listener.NextCallback;

/**
 * Created by Caldremch on 2017-06-17 12:01
 */

public class ApiService extends ApiRetrofit {

    private ApiService() {
        super();
    }

    private  static ApiService apiService;

    public static ApiService getInstance(){

        if (apiService == null){
            apiService = new ApiService();
        }
        return apiService;
    }



    //登录 example
    public <T> void getAppIndexBanner(Context context,NextCallback<T> onResponseListener) {
        //也可以在这里构建参数
        doRequest(context, mApi.getAppIndexBanner(),onResponseListener);

    }





}
